from graph import*
windowSize(500,500)
penColor(0,0,25)
penSize(10)
brushColor(20,0,255)
x = int(input("x= "))
y = int(input("y= "))
n = int(input("n= "))
polygon([(x,y), (x+50*n,y), (x+50*n,y+50*n), (x+100*n,y+50*n), (x+100*n,y), (x+150*n,y), (x+150*n,y+100*n), (x,y+100*n), (x,y)])
if x>=500 and y>=500 and x+50>=500 and y+50>=500 and x+150>500 and y+150>500:
    print("фигура превышает максимальный размер")
elif x<1 or y<1 or n==0:
        print("маштаб")
else:
    polygon([(x,y), (x+50*n,y), (x+50*n,y+50*n), (x+100*n,y+50*n), (x+100*n,y), (x+150*n,y), (x+150*n,y+100*n), (x,y+100*n), (x,y)])
run()
